package com.grass.appointment.dialog;

import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.view.Window;
import android.widget.TextView;
import com.androidx.p013lv.base.C1010R;
import com.grass.appointment.C2694R;
import java.util.Objects;

public class AddressDialog extends Dialog {
    private TextView tvContent = ((TextView) findViewById(C2694R.C2697id.tv_content));

    public AddressDialog(Context context, View.OnClickListener onClickListener) {
        super(context, C1010R.C1017style.MyDialogStyle);
        ((Window) Objects.requireNonNull(getWindow())).setGravity(17);
        setContentView(C2694R.C2699layout.dialog_address);
        findViewById(C2694R.C2697id.dialog_btn_sure).setOnClickListener(onClickListener);
        findViewById(C2694R.C2697id.dialog_btn_dis).setOnClickListener(new View.OnClickListener() {
            /* class com.grass.appointment.dialog.AddressDialog.View$OnClickListenerC27931 */

            public void onClick(View view) {
                AddressDialog.this.dismiss();
            }
        });
    }

    public void setMessage(String str) {
        this.tvContent.setText(str);
    }
}
